<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 武露斌
  Date: 2021/10/25
  Time: 9:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="../../jquery-ui-1.10.4.custom/js/jquery-1.8.2.min.js"></script>
    <link rel="stylesheet" href="../../jquery-ui-1.10.4.custom/css/css.css">
</head>
<body>

<form action="list.do" method="post">
    <input type="hidden" name="pageNum"><br>
    财务日期范围：<input type="text" name="tsta" value="${map.tsta}">-
    --<input type="text" name="tends" value="${map.tends}"><br>
    原账号：<input type="text" name="yzh" value="${map.yzh}">
    原账号名称：<input type="text" name="yname" value="${map.yname}"><br>
    目标账号：<input type="text" name="mzh" value="${map.mzh}">
    目标账号名称：<input type="text" name="mname" value="${map.mname}"><br>
    科目编号:<input type="text" name="kid" value="${map.kid}">
    科目：<input type="text" name="km" value="${map.km}">
    摘要：<input type="text" name="bz" value="${map.bz}"><br>
    借方范围:<input type="text" name="qsta" value="${map.qsta}">-
    --<input type="text" name="qends" value="${map.qends}"><br>
    贷方范围:<input type="text" name="dsta" value="${map.dsta}">--
    -<input type="text" name="dends" value="${map.dends}"><br>
    余额范围:<input type="text" name="ysta" value="${map.ysta}">-
    --<input type="text" name="yends" value="${map.yends}">
    <input type="submit" value="查询">
    <input type="button" value="刷新" onclick="sx()">
</form>


<table>
    <tr>
        <td>编号</td>
        <td>财务日期</td>
        <td>源账号</td>
        <td>源账户名称</td>
        <td>目标账户</td>
        <td>目标账户名称</td>
        <td>科目编号</td>
        <td>科目</td>
        <td>摘要</td>
        <td>借方</td>
        <td>贷方</td>
        <td>余额</td>
    </tr>
    <c:forEach items="${pageInfo.list}" var="a">
        <tr>
            <td>${a.cid}</td>
            <td>${a.cdate}</td>
            <td>${a.yzh}</td>
            <td>${a.yname}</td>
            <td>${a.mzh}</td>
            <td>${a.mname}</td>
            <td>${a.kid}</td>
            <td>${a.km}</td>
            <td>${a.bz}</td>
            <td>${a.qf}</td>
            <td>${a.df}</td>
            <td>${a.yue}</td>
        </tr>
    </c:forEach>

    <tr>
       <td colspan="20">
           <input type="button" value="添加" onclick="add()">
           <input type="button" value="首页" onclick="fy(1)">
           <input type="button" value="上一页" onclick="fy(${pageInfo.isFirstPage?1:pageInfo.prePage})">
           <input type="button" value="下一页" onclick="fy(${pageInfo.isLastPage?pageInfo.pages:pageInfo.nextPage})">
           <input type="button" value="尾页" onclick="fy(${pageInfo.pages})">
       </td>
    </tr>
</table>

</body>
</html>
<script>

    function fy(pageNum) {
        $("[name='pageNum']").val(pageNum)
        $("form").submit();
    }

    function sx() {
        location="list.do"
    }

    function add() {
        location="addto.do"
    }

</script>



























